/*
	-----------This Page contains all Admission consulting package functions----------
*/

 function populateUserPackages()
 {
	 var selectedValue = document.getElementById("ddlUserAdmissionConsultingPackage").value;
	 if(selectedValue=="select")
	 {
		 alert("Please select your package");
	 }
	 else
	 {
		 
	 }
 }
 
 function populateDivForConsultancy(userId,is_admin)
 {
	 var selectedValue = document.getElementById("userpackage").value;
	 var package="";
	 if(selectedValue!="--Select--")
	 {
		 if(is_admin=="Y")
		 {
			 package="reviewPackage";
		 }
		 else
		 {
			 package="userPackage";
		 }
		 $.post("admission-consulting-process.php",{action:package,package_no:selectedValue,user_id:userId},function(data){
			
		 $("#entryBox").html(data);
		},"text");
	 }
	 else
	 {
		 alert("Please select a valid Package");
		 return false;
	 }
 }
 
 function selectpackageForUser()
 {
	 var selectedValue = document.getElementById("user_id").value;
	 if(selectedValue=="--Select--")
	 {
		 alert("Please select a valid user");
		 return false;
	 }
	 else
	 {
		 window.open("AdmissionConsulting.php?selectedUser="+selectedValue,"_self");
	 }
 }
 
 
